<?php
// this example shows a simple exception being caught and dumped
// try it under apache / cli and see the different outputs...
require_once dirname(__file__) . '/../blib/blib.php';

try {
    throw new Blib_Exception('Hey I am a blib exception, Howdy!');
} catch (Exception $e) {
    echo $e;    // this triggers the dump.
}
?>